package cn.s1995.sloth.bizs.oo.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;

import cn.s1995.sloth.bizs.entity.VideoComment;
import cn.s1995.sloth.common.core.convert.JoinUrlPrefixConvert;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Data
public class VideoCommentVO extends VideoComment {

	/**
	 * 子评论数
	 */
	@TableField(exist = false)
	@Schema(description = "子评论数")
	private Integer childCommentCount;

	/**
	 * 是否点赞
	 */
	@TableField(exist = false)
    @Schema(description = "是否点赞")
    private boolean isLike;

	/**
	* 用户昵称
	*/
    @Schema(description = "评论用户昵称")
    private String userNickname;


	/**
	* 用户昵称
	*/
    @Schema(description = "被评论用户昵称")
    private String toUserNickname;

	/**
	* 用户头像
	*/
    @JsonSerialize(using = JoinUrlPrefixConvert.class)
    @Schema(description = "用户头像")
    private String userAvatar;
}
